package com.weishu.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.weishu.domain.TCfContract;
import com.weishu.mapper.TCfContractMapper;
import com.weishu.service.ITCfContractService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liyan
 * @since 2021-07-24
 */
@Service
public class TCfContractServiceImpl extends ServiceImpl<TCfContractMapper, TCfContract> implements ITCfContractService {

    @Autowired
    private TCfContractMapper tCfContractMapper;
    @Override
    public PageInfo<TCfContract> select(TCfContract  tCfContract) {
        PageHelper.startPage(tCfContract.getPageNum(),tCfContract.getPageSize());
        List<TCfContract> list= tCfContractMapper.select(tCfContract);
        return new PageInfo<>(list);
    }
}
